package cn.yhbk.web.modules.manager.Mapper;

import cn.yhbk.web.modules.manager.Pojo.DTO.ScholarShip.ScholarShipDto;
import cn.yhbk.web.modules.manager.Pojo.Entity.TbScholarship;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 奖学金信息表 Mapper 接口
 * </p>
 *
 * @author 有何不可
 * @since 2023-08-05
 */
@Mapper
public interface TbScholarshipMapper extends BaseMapper<TbScholarship> {

    TbScholarship getScholarship(Long id);

    Integer queryTotalNum(@Param("typeId") Long typeId,
                          @Param("name") String name);

    List<TbScholarship> queryScholarshipPage(@Param("i") int i,
                                             @Param("pageSize") Integer pageSize,
                                             @Param("typeId") Long typeId,
                                             @Param("name") String name);

    List<TbScholarship> querySameType(@Param("scholarshipId") Long scholarshipId);

    List<ScholarShipDto> queryScholarshipList();
}
